<?xml version="1.0" encoding="utf-8"?>
<WITD application="Work item type editor" version="1.0">
  <WORKITEMTYPE name="Code Item">
    <DESCRIPTION>Enthält Informationen über Code, der während eines Code-Reviews als überarbeitungsbedürftig erkannt wurde</DESCRIPTION>
    <FIELDS>
      <FIELD reportable="dimension" type="String" name="Title" refname="System.Title">
        <HELPTEXT>Kurze Beschreibung der Aufgabe zur Identifizierung in Listen oder Reports</HELPTEXT>
        <REQUIRED />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Zustand" refname="System.State">
        <HELPTEXT>Workflow-Status der Aufgabe</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="Integer" name="Rev" refname="System.Rev" />
      <FIELD reportable="dimension" type="String" name="Geändert von" refname="System.ChangedBy">
        <VALIDUSER />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Grund" refname="System.Reason">
        <HELPTEXT>Grund, warum das Code-Element sich im aktuellen Zustand befindet</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Zugewiesen an" refname="System.AssignedTo">
        <VALIDUSER />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Work Item Type" refname="System.WorkItemType" />
      <FIELD reportable="dimension" type="String" name="Integrationsbuild" refname="Microsoft.VSTS.Build.IntegrationBuild">
        <HELPTEXT>Der Build in dem das Code-Element bereinigt wurde</HELPTEXT>
        <SUGGESTEDVALUES>
          <LISTITEM value="&lt;None&gt;" />
        </SUGGESTEDVALUES>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Erstellungsdatum" refname="System.CreatedDate" />
      <FIELD reportable="dimension" type="String" name="Erstellt von" refname="System.CreatedBy" />
      <FIELD reportable="dimension" type="String" name="Problem" refname="Microsoft.VSTS.Common.Issue">
        <HELPTEXT>Benuzt zum Hervorheben,z.B. um die Aufgabe als Fehler zu markieren</HELPTEXT>
        <REQUIRED />
        <ALLOWEDVALUES>
          <LISTITEM value="Nein" />
          <LISTITEM value="Ja" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Nein" />
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Datum Zusatndsänderung" refname="Microsoft.VSTS.Common.StateChangeDate">
        <WHENCHANGED field="System.State">
          <SERVERDEFAULT from="clock" />
        </WHENCHANGED>
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Aktiviert von" refname="Microsoft.VSTS.Common.ActivatedBy">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Aktivierungsdatum" refname="Microsoft.VSTS.Common.ActivatedDate">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Schließungsdatum" refname="Microsoft.VSTS.Common.ClosedDate">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Geschlossen von" refname="Microsoft.VSTS.Common.ClosedBy">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Rang" refname="Microsoft.VSTS.Common.Rank">
        <HELPTEXT>Rangfolge zur Priorisierung des Code-Elements</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Beendigungskriterium" refname="Microsoft.VSTS.Common.ExitCriteria">
        <HELPTEXT>Kennzeichen, um festzustellen, ob dieses Szenario als Beendigungskriterium für die Iteration genutzt werden soll</HELPTEXT>
        <REQUIRED />
        <ALLOWEDVALUES>
          <LISTITEM value="Nein" />
          <LISTITEM value="Ja" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Nein" />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Disziplin" refname="Microsoft.VSTS.Common.Discipline">
        <HELPTEXT>Disziplin, zu der das Code-Element gehört</HELPTEXT>
        <ALLOWEDVALUES>
          <LISTITEM value="Entwicklung" />
          <LISTITEM value="Test" />
          <LISTITEM value="Projekt Management" />
          <LISTITEM value="Anforderungen" />
          <LISTITEM value="Architektur" />
          <LISTITEM value="Release Management" />
        </ALLOWEDVALUES>
      </FIELD>
      <FIELD type="PlainText" name="Beschreibung" refname="System.Description" />
      <FIELD reportable="measure" type="Double" name="Ursprüngliche Arbeit" refname="Microsoft.VSTS.Scheduling.BaselineWork">
        <HELPTEXT>Anzahl der Arbeitsstunden aus Ursprungsplanung</HELPTEXT>
      </FIELD>
      <FIELD type="History" name="Historie" refname="System.History">
        <HELPTEXT>Diskussion und andere historische Informationen</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Startdatum" refname="Microsoft.VSTS.Scheduling.StartDate">
        <HELPTEXT>Startdatum des Code-Elements</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Abgeschlossene Arbeit" refname="Microsoft.VSTS.Scheduling.CompletedWork">
        <HELPTEXT>Anzahl der bereits aufgewendeten Arbeitsstunden für dieses Code-Element</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="DateTime" name="Abschlussdatum" refname="Microsoft.VSTS.Scheduling.FinishDate">
        <HELPTEXT>Fertigstellungsdatum des Code-Elements</HELPTEXT>
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Aufgabenhierarchy" refname="Microsoft.VSTS.Scheduling.TaskHierarchy">
        <HELPTEXT>Text, um den Kontext für das Code-Element innerhalb von MS-Project darzustellen</HELPTEXT>
      </FIELD>
      <FIELD reportable="measure" type="Double" name="Verbleibende Arbeit" refname="Microsoft.VSTS.Scheduling.RemainingWork">
        <HELPTEXT>Geschätzte Anzahl der Arbeitsstunden bis zur Fertigstellung des Code-Elements</HELPTEXT>
      </FIELD>
      <FIELD type="Integer" name="Anzahl der zugehörigen Verknüpfungen" refname="System.RelatedLinkCount" />
      <FIELD reportable="dimension" type="String" name="CodeMember" refname="CodeReviewAddIn.CodeMember" />
      <FIELD reportable="dimension" type="String" name="CodeProject" refname="CodeReviewAddIn.CodeProject" />
      <FIELD reportable="dimension" type="String" name="CodeFile" refname="CodeReviewAddIn.CodeFile" />
      <FIELD reportable="detail" type="Integer" name="CodeStartLine" refname="CodeReviewAddIn.CodeStartLine" />
      <FIELD reportable="detail" type="Integer" name="CodeEndLine" refname="CodeReviewAddIn.CodeEndLine" />
      <FIELD reportable="dimension" type="String" name="CodeNamespace" refname="CodeReviewAddIn.CodeNamespace" />
      <FIELD reportable="dimension" type="String" name="CodeClass" refname="CodeReviewAddIn.CodeClass" />
      <FIELD type="PlainText" name="CodeSuggestedResolution" refname="CodeReviewAddIn.CodeResolution" />
      <FIELD reportable="dimension" type="TreePath" name="Iterationpfad" refname="System.IterationPath">
        <HELPTEXT>Die Iteration des Produkts, zu der das Code-Element zugeordnet ist</HELPTEXT>
      </FIELD>
      <FIELD type="Integer" name="Iterations ID" refname="System.IterationId" />
      <FIELD type="PlainText" name="Code Beschreibung" refname="CodeReviewAddIn.CodeDescription" />
      <FIELD type="PlainText" name="Code Ausschnitt" refname="CodeReviewAddIn.CodeSnippet" />
      <FIELD reportable="measure" type="Integer" name="Anzahl der externen Verknüpfungen" refname="System.ExternalLinkCount" />
      <FIELD reportable="dimension" type="String" name="Team Projekt" refname="System.TeamProject" />
      <FIELD reportable="measure" type="Integer" name="Anzahl Hyperlinks" refname="System.HyperLinkCount" />
      <FIELD reportable="measure" type="Integer" name="Anzahl angehängter Dateien" refname="System.AttachedFileCount" />
      <FIELD type="String" name="Knotenname" refname="System.NodeName" />
      <FIELD reportable="dimension" type="TreePath" name="Bereichspfad" refname="System.AreaPath">
        <HELPTEXT>Der Bereichspfad dem das Code-Element zugeordnet ist</HELPTEXT>
      </FIELD>
      <FIELD type="DateTime" name="Überarbeitungsdatum" refname="System.RevisedDate" />
      <FIELD reportable="dimension" type="DateTime" name="Änderungsdatum" refname="System.ChangedDate" />
      <FIELD reportable="dimension" type="Integer" name="ID" refname="System.Id" />
      <FIELD type="Integer" name="Bereichs ID" refname="System.AreaId" />
      <FIELD type="String" name="Autorisiert als" refname="System.AuthorizedAs" />
      <FIELD reportable="dimension" type="String" name="Typ des Code-Elements" refname="CodeReviewAddin.CodeItemType">
        <ALLOWEXISTINGVALUE />
        <ALLOWEDVALUES>
          <LISTITEM value="Review Anforderung" />
          <LISTITEM value="Review Ergebnis" />
        </ALLOWEDVALUES>
        <REQUIRED />
        <DEFAULT from="value" value="Review Ergebnis" />
      </FIELD>
      <FIELD reportable="dimension" type="String" name="Code Priorität" refname="CodeReviewAddIn.CodePriority">
        <ALLOWEDVALUES>
          <LISTITEM value="Kritisch" />
          <LISTITEM value="Hoch" />
          <LISTITEM value="Mittel" />
          <LISTITEM value="Niedrig" />
          <LISTITEM value="Keine" />
          <LISTITEM value="Empfehlung" />
        </ALLOWEDVALUES>
        <DEFAULT from="value" value="Empfehlung" />
        <REQUIRED />
      </FIELD>
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Active">
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <EMPTY />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <EMPTY />
            </FIELD>
          </FIELDS>
        </STATE>
        <STATE value="Closed" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Active">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="System.AssignedTo">
              <DEFAULT from="currentuser" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Closed" to="Active">
          <REASONS>
            <DEFAULTREASON value="Reactivated" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="System.AssignedTo">
              <COPY from="field" field="Microsoft.VSTS.Common.ClosedBy" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Active" to="Closed">
          <ACTIONS>
            <ACTION value="Microsoft.VSTS.Actions.Checkin" />
          </ACTIONS>
          <REASONS>
            <REASON value="Deferred" />
            <REASON value="Obsolete" />
            <REASON value="Cut" />
            <DEFAULTREASON value="Completed" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <COPY from="currentuser" />
              <VALIDUSER />
              <REQUIRED />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <READONLY />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <READONLY />
            </FIELD>
          </FIELDS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.Title" Type="FieldControl" Label="&amp;Titel:" LabelPosition="Left" />
          </Column>
          <Column PercentWidth="40" />
        </Group>
        <Group Label="Klassifizierung">
          <Column PercentWidth="100">
            <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&amp;Bereich:" LabelPosition="Left" />
            <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="&amp;Iteration:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group Label="Status">
          <Column PercentWidth="33">
            <Control FieldName="System.AssignedTo" Type="FieldControl" Label="&amp;Zugeordnet zu:" LabelPosition="Left" />
            <Control FieldName="Microsoft.VSTS.Common.Rank" Type="FieldControl" Label="Rang:" LabelPosition="Left" NumberFormat="WholeNumbers" MaxLength="10" />
          </Column>
          <Column PercentWidth="33">
            <Control FieldName="System.State" Type="FieldControl" Label="Status:" LabelPosition="Left" />
            <Control FieldName="System.Reason" Type="FieldControl" Label="Grund:" LabelPosition="Left" />
          </Column>
          <Column PercentWidth="33">
            <Control FieldName="CodeReviewAddIn.CodePriority" Type="FieldControl" Label="Priorität:" LabelPosition="Left" />
            <Control FieldName="CodeReviewAddin.CodeItemType" Type="FieldControl" Label="Typ:" LabelPosition="Left" Dock="Fill" />
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Beschreibung">
            <Control FieldName="CodeReviewAddIn.CodeDescription" Type="HtmlFieldControl" Label="Des&amp;cription:" LabelPosition="Top" Dock="Top" />
            <Control FieldName="CodeReviewAddIn.CodeResolution" Type="HtmlFieldControl" Label="Suggested &amp;Resolution:" LabelPosition="Top" Dock="Bottom" />
          </Tab>
          <Tab Label="Code Ausschnitt">
            <Control FieldName="System.Description" Type="HtmlFieldControl" Label="Code:" LabelPosition="Top" Dock="Fill" ReadOnly="True" />
          </Tab>
          <Tab Label="Code Details">
            <Group Label="">
              <Column PercentWidth="50">
                <Group Label="Code Zuordnung">
                  <Column PercentWidth="100">
                    <Control FieldName="CodeReviewAddIn.CodeProject" Type="FieldControl" Label="Projekt:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeNamespace" Type="FieldControl" Label="Namespace:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeClass" Type="FieldControl" Label="Klasse:" LabelPosition="Left" />
                    <Control FieldName="CodeReviewAddIn.CodeMember" Type="FieldControl" Label="Name:" LabelPosition="Left" />
                  </Column>
                </Group>
              </Column>
              <Column PercentWidth="50">
                <Group Label="Code Datei">
                  <Column PercentWidth="100">
                    <Control FieldName="CodeReviewAddIn.CodeFile" Type="FieldControl" Label="Pfad:" LabelPosition="Left" />
                    <Group Label="Line Numbers">
                      <Column PercentWidth="50">
                        <Control FieldName="CodeReviewAddIn.CodeStartLine" Type="FieldControl" Label="Start:" LabelPosition="Left" />
                      </Column>
                      <Column PercentWidth="50">
                        <Control FieldName="CodeReviewAddIn.CodeEndLine" Type="FieldControl" Label="Ende:" LabelPosition="Left" />
                      </Column>
                    </Group>
                  </Column>
                </Group>
              </Column>
            </Group>
          </Tab>
          <Tab Label="Historie">
            <Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;Historie:" LabelPosition="Top" Dock="Fill" />
          </Tab>
          <Tab Label="Links">
            <Control Type="LinksControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="Dateianhänge">
            <Control Type="AttachmentsControl" LabelPosition="Top" />
          </Tab>
          <Tab Label="Details">
            <Group>
              <Column PercentWidth="50">
                <Group Label="Allgemein">
                  <Column PercentWidth="100">
                    <Control FieldName="Microsoft.VSTS.Common.Issue" Type="FieldControl" Label="Problem:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Common.ExitCriteria" Type="FieldControl" Label="Beendigungskriterium:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Build.IntegrationBuild" Type="FieldControl" Label="Integrationsbuild:" LabelPosition="Left" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.TaskHierarchy" Type="FieldControl" Label="Code Element Kontext:" LabelPosition="Left" ReadOnly="True" />
                  </Column>
                </Group>
              </Column>
              <Column PercentWidth="50">
                <Group Label="Planung">
                  <Column PercentWidth="100">
                    <Control FieldName="Microsoft.VSTS.Scheduling.RemainingWork" Type="FieldControl" Label="Verbleibende Arbeit (h):" LabelPosition="Left" NumberFormat="DecimalNumbers" MaxLength="10" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.CompletedWork" Type="FieldControl" Label="Abgeschlossene Arbeit (h):" LabelPosition="Left" NumberFormat="DecimalNumbers" MaxLength="10" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.StartDate" Type="FieldControl" Label="Start Datum:" LabelPosition="Left" ReadOnly="True" />
                    <Control FieldName="Microsoft.VSTS.Scheduling.FinishDate" Type="FieldControl" Label="Fertzigstellungsdatum:" LabelPosition="Left" ReadOnly="True" />
                  </Column>
                </Group>
              </Column>
            </Group>
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</WITD>